
Discount Module code error
Reported by Dave Howarth | July 12th, 2009 @ 10:11 AM
When trying to apply a valid discount code the always returns that the user has entered an invalid discount code.
This is due to a query error in modules/discount/discount.inc.php on line 99
$rs = $db->Execute(sqlSelect($db,"discount","*","( date_start IS NULL OR date_start=0 OR date_start<".time().") AND date_expire<=".time()." AND name=::$discount_code::"));
This query should read..
$rs = $db->Execute(sqlSelect($db,"discount","*","( date_start IS NULL OR date_start=0 OR date_start<".time().") AND date_expire>=".time()." AND name=::$discount_code::"));
Comments and changes to this ticket
-
Scott August 14th, 2009 @ 08:18 PM
- Assigned user set to Scott
David,
Thanks for the fix, I'll patch it shortly...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Open Source Billing, Invoicing, and Provisioning